package com.fx.dao;

import com.fx.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * des:
 *
 * @author fxiao
 * @date 2020/12/10 17:37
 */
@Repository
public interface UserDao extends JpaRepository<User,Long> {
    User findUserByUsername(String username);
    void deleteByUsername(String username);
}